var r = {
	init: function() {
		var mySwiper = new Swiper ('.swiper-container', {
			direction: 'horizontal', // 垂直切换选项
			loop: true, // 循环模式选项
			autoplay: {
				delay: 8000
			},

			// 如果需要分页器
			pagination: {
				el: '.swiper-pagination',
			},

			// 如果需要前进后退按钮
			navigation: {
				nextEl: '.swiper-button-next',
				prevEl: '.swiper-button-prev'
			},
		})
		$(".header_nav a[name='index']").addClass('current')
		$("ul.header_slideout-menu li ul li a[name='index']").addClass('current')
	}
}


$(function() {
	r.init()
})